package com.ruoyi.system.domain.zhuangxiumain.shopMain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.*;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

/***
 * 商品图片信息表
 *
 * ***/

public class ProductPicInfo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 商品图片ID */
    private Integer productPicId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Integer productId;
    private Integer numproductIdPic;

    /** 图片描述 */
    @Excel(name = "图片描述")
    private String picDesc;

    /** 图片URL */
    @Excel(name = "图片URL")
    private String picUrl;
    private String labelQuantity;

    /** 是否主图：0.非主图1.主图 */
    @Excel(name = "是否主图：0.非主图1.主图")
    private Integer isMaster;

    /** 图片排序 */
    @Excel(name = "图片排序")
    private Integer picOrder;

    /** 图片是否有效：0无效 1有效 */
    @Excel(name = "图片是否有效：0无效 1有效")
    private Integer picStatus;

    /** 最后修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifiedTime;


    public String getLabelQuantity() {
        return labelQuantity;
    }

    public void setLabelQuantity(String labelQuantity) {
        this.labelQuantity = labelQuantity;
    }

    public Integer getNumproductIdPic() {
        return numproductIdPic;
    }

    public void setNumproductIdPic(Integer numproductIdPic) {
        this.numproductIdPic = numproductIdPic;
    }

    public void setProductPicId(Integer productPicId)
    {
        this.productPicId = productPicId;
    }

    public Integer getProductPicId()
    {
        return productPicId;
    }
    public void setProductId(Integer productId)
    {
        this.productId = productId;
    }

    public Integer getProductId()
    {
        return productId;
    }
    public void setPicDesc(String picDesc)
    {
        this.picDesc = picDesc;
    }

    public String getPicDesc()
    {
        return picDesc;
    }
    public void setPicUrl(String picUrl)
    {
        this.picUrl = picUrl;
    }

    public String getPicUrl()
    {
        return picUrl;
    }
    public void setIsMaster(Integer isMaster)
    {
        this.isMaster = isMaster;
    }

    public Integer getIsMaster()
    {
        return isMaster;
    }
    public void setPicOrder(Integer picOrder)
    {
        this.picOrder = picOrder;
    }

    public Integer getPicOrder()
    {
        return picOrder;
    }
    public void setPicStatus(Integer picStatus)
    {
        this.picStatus = picStatus;
    }

    public Integer getPicStatus()
    {
        return picStatus;
    }
    public void setModifiedTime(Date modifiedTime)
    {
        this.modifiedTime = modifiedTime;
    }

    public Date getModifiedTime()
    {
        return modifiedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("productPicId", getProductPicId())
                .append("productId", getProductId())
                .append("picDesc", getPicDesc())
                .append("picUrl", getPicUrl())
                .append("isMaster", getIsMaster())
                .append("picOrder", getPicOrder())
                .append("picStatus", getPicStatus())
                .append("modifiedTime", getModifiedTime())
                .append("numproductIdPic", getNumproductIdPic())
                .append("labelQuantity", getLabelQuantity())
                .toString();
    }
}
